namespace WebSiteFool.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Update : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Comments",
                c => new
                {
                    Id = c.Guid(nullable: false, identity: true),
                    UserId = c.Int(nullable: false),
                    Content = c.Guid(nullable: false),
                    CreateDate = c.DateTime(nullable: false),
                    Article_Id = c.Guid(),
                })
                .PrimaryKey(t => t.Id)
                .ForeignKey("dbo.Article", t => t.Article_Id)
                .Index(t => t.Article_Id);
        }
        
        public override void Down()
        {
        }
    }
}
